From b1c32ad193e53494ca03601363c6eddaa577d4e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 15 Nov 2016 00:33:41 +0100 Subject: [PATCH] babl.db: do not use strtod - it is locale dependent --- babl/babl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/babl/babl.c b/babl/babl.c index 7209c8f..b91b3ac 100644 --- a/babl/babl.c +++ b/babl/babl.c @@ -334,11 +334,11 @@ static void babl_init_db (const char *path) { if (!strncmp (token2, "error=", 6)) { - babl->fish.error = strtod (token2 + 6, NULL); + babl->fish.error = babl_parse_double (token2 + 6); } else if (!strncmp (token2, "cost=", 5)) { - babl->fish_path.cost = strtod (token2 + 5, NULL); + babl->fish_path.cost = babl_parse_double (token2 + 5); } else if (!strncmp (token2, "pixels=", 7)) { -- 2.30.2